/**
 * 
 */
package com.aceitunaproject.client;

import javax.swing.DefaultListModel;

import com.aceitunaproject.client.commands.Order;

/**
 * 
 * Model for the orders list.
 * 
 * @author Federico Bergstein
 *
 */
public class OrdersListModel extends DefaultListModel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public Order getOrder(int index)
	{
		return (Order)get(index);
	}
	public void addOrder(Order order)
	{
		add(this.getSize(),order);
	}

}
